// routers
import Home from "@/pages/Home";
import Error from "@/pages/Error";
// ChilRouters
import Index from "@/pages/Homes/Index"; // 精选推荐
import Stenc from "@/pages/Homes/StencilCenter"; // 模版中心
import Digital from "@/pages/Homes/DigitalVideo"; // 数字人视频
// icon
import { HomeFilled,AppstoreFilled,RobotFilled } from "@ant-design/icons";
export const ChilRouters = [
  {
    path: "/home/index",
    element: Index,
    title: "精选推荐",
    icon: <HomeFilled />,
  },
  {
    path: "/home/stenc",
    element: Stenc,
    title: "模版中心",
    icon: <AppstoreFilled />,
  },
  {
    path: "/home/digital",
    element: Digital,
    title: "数字人视频",
    icon: <RobotFilled />,
  },
];
const routers = [
  {
    path: "/",
    to: "/home/index",
  },
  {
    path: "/home",
    element: Home,
    title: "首页",
    children: ChilRouters,
  },
  {
    path: "*",
    element: Error,
    title: "错误页面",
  },
];

export default routers;
